How do I...?
Concepts

How do I...?

How do I create an internal script?

 
The easiest way to create a script is to record it. Choose Start Recording from the Scripts menu. Any actions you make after choosing this command will be recorded. When you are done, choose Stop Recording. Alternatively, you can display the Script Palette from the Window menu and click on the Record and Stop buttons to accomplish the corresponding actions.

The Edit Script dialog box will appear with a script of the recorded actions. You can edit the script as required. If you want to list the script in the Scripts menu, select Display in Menu. To assign the script to a function key, choose a function key and modifier. Click OK.

How do I play an internal script?


Choose Show Script Palette from the Window menu to display the Scripts palette. Select a script and click on the Play button.

You can also play internal scripts by choosing them from the Script menu, selecting them from the Script palette, or by pressing a function key or clicking a toolbar button assigned to a script.

How do I create an external script?

Create an internal script to use as the basis for an external script. Select the script in the Script palette and choose Export from the palette's pop-up menu. Enter a name for the script in the file selector and click Save.

How do I play an external script?

Select Play External Script from the Script menu. Select a script from the file selector and click Open.

Concepts

AppleScript

AppleScript is the MacOS scripting language. It can be used to control your MacOS computer and applications. It allows your scripts to query PageStream and to send it commands.

ARexx

ARexx is the AmigaOS scripting language. It can be used to control your AmigaOS computer and applications. It allows your scripts to query PageStream and to send it commands.

Internal scripts

Internal scripts do not rely on external scripting languages. They may use commands only; queries are reserved for external scripts because internal scripts lack variables and flow control statements.

Internal scripts should be used for simple tasks. External scripts offer more control and thus can be used for almost any task for which commands and queries exist.

Previous section: What are Scripts?
Go to Appendices:Extensions

Exit: Table of Contents